<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" rel="stylesheet">
<link href="css/bootstrap.css" rel="stylesheet">
<script type="text/javascript" src="js/jquery/jquery-1.7.min.js"></script>
<script type="text/javascript" src="js/jquery/jquery.validate.js"></script>
<script type="text/javascript" src="js/jquery/validate-methods.js"></script>
<script type="text/javascript" src="js/json/json-minified.js"></script>
<script type="text/javascript" src="js/catalogProvider.js"></script>
<script type="text/javascript" src="jedate/jedate.js"></script>
<link type="text/css" rel="stylesheet" href="jedate/skin/jedate.css">

<title>设置秒杀活动</title>
</head>
<body>
	<div class="navbar navbar-inverse navbar-fixed-top container-fluid">
		<div class="navbar-header">
			<a class="navbar-brand" href="#"><span>蓝天家政</span>系统</a>
			<ul class="user-menu">
				<li class="dropdown pull-right"><a href="#"
					class="dropdown-toggle" data-toggle="dropdown"><img
						src="image/user-white.png"
						style="width: 25%; height: 25%; margin-right: 10%;"><label
						class="user">管理员</label><span class="caret"></span></a>
					<ul class="dropdown-menu" role="menu">
						<li><a href="javascript:void(0)" onclick="a();"> <label
								class="user">详细信息</label></a></li>
						<li><a href="logout.action"> <label class="user">注销</label></a></li>
					</ul></li>
			</ul>
		</div>
	</div>
	<div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar">
		<form role="search">
			<div class="form-group">登录成功</div>
		</form>
		<ul class="nav menu">
			<li><a href="getAllProviderByAdmin.action">查看所有供应商</a></li>
			<li><a href="listAllUNAUTHORIZED.action">认证供应商资格</a></li>
			<li class="active"><a href="setSecondKill.jsp">设置秒杀活动</a></li>
			<li role="presentation" class="divider"></li>
			<li><a href="logout.action">注销</a></li>
		</ul>
	</div>

	<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main"
		id="main">
		<ol class="breadcrumb">
			<li class="active"><img src="image/home.png" class="home">/&nbsp;&nbsp;设置秒杀活动</li>
		</ol>

		<div class="row">
			<div class="col-lg-12">
				<div class="panel-static panel-default">
					<div class="panel-heading">设置秒杀：</div>
					<div class="panel-body">
						<form id="setSecondKill" method="post"
							action="setSecondKill.action">
							<table width="100%" border="0">
								<tr>
									<td width="50%" align="right">选择服务种类：</td>
									<td><select name="secondKill.servicecatalog.id"
										id="servicecatalog"
										onchange="onSelectChange(this,'provider');">
									</select></td>
								</tr>
								<tr>
									<td align="right">选择供应商：</td>
									<td><select name="secondKill.provider.id" id="provider">
											<option value="">请选择</option>
									</select></td>
								</tr>
								<tr>
									<td align="right">设置数量：</td>
									<td><input type="text" name="secondKill.num" id="num" /></td>
								</tr>
								<tr>
									<td align="right">秒杀开始时间：</td>
									<td><input id="time" type="text" name="secondKill.time"
										placeholder="请选择" readonly></td>
								</tr>
								<tr>
									<td colspan="2" align="center"><input type="submit"
										name="submit" id="submit" value="提交" /></td>
								</tr>
							</table>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
		jeDate({
			dateCell : "#time",
			format : "YYYY-MM-DD hh:mm:ss",
			//isinitVal:true,
			isTime : true,
			festival : true, //显示节日
			minDate : "2015-09-19 00:00:00",
			maxDate : "2019-09-19 00:00:00"
		})
	</script>
</body>
</html>